package com.zhumengquan.wozhi.service;

import com.zhumengquan.wozhi.domain.User;
import com.zhumengquan.wozhi.mapper.FindUserByNameDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class FindUserByNameService {
    @Autowired
    private FindUserByNameDao findUserByNameDao;

    public User getUser(String name){
        User result = findUserByNameDao.findUserByName(name);
        System.out.println(result);
        return result;
    }
}
